@if ( count($errors) > 0 || Session::has('errorInfo') )
    <div class="alert alert-danger">
        <strong>抱歉!</strong> 你的输入似乎有一些问题.<br><br>
        <ul>
            @foreach ($errors->all() as $error)
                <li>{{ $error }}</li>
            @endforeach
            @if(Session::has('errorInfo'))
                <li>{{ Session::get('errorInfo') }}</li>
            @endif
        </ul>
    </div>
@endif
@if(Session::has('info'))
<div class="alert alert-success">
    <strong>{{Session::get('info')}}!</strong>
    
</div>
@endif